8 while (t
-- && cin
>> n
){
9 if (n
<= 0){ cout
<< "0" << endl
; continue; }
14 long long start
= n
/ i
;
15 long long low
= i
, high
= n
;
17 //long long mid = (low + high + 1) / 2;//low + (high - low + 1) / 2;
18 long long mid
= low
+ (high
- low
+ 1) / 2;
19 //printf("low=%lld, high=%lld, mid=%lld, i=%lld\n", low, high, mid, i);
20 if (n
/ mid
!= start
) high
= mid
- 1;
23 res
+= (low
- i
+ 1) * start
;